package com.bjbn.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 通用响应参数数据信息
 */
@Data
public class CommonResDataItem {
    /**
     * 记录唯一标识
     */
    @Schema(description = "记录唯一标识", example = "记录唯一标识", required = true)
    @NotBlank(message = "记录唯一标识不能为空")
    private String item_id;

    /**
     * 业务数据返回码 0 成功 1 失败
     */
    @Schema(description = "业务数据返回码", example = "业务数据返回码", required = true)
    @NotBlank(message = "业务数据返回码不能为空")
    private int code;
}
